package com.nageoffer.aicloud.common.enums;


import com.nageoffer.aicloud.common.convention.errorcode.IErrorCode;

/**
 * 自定义用户记录错误码
 */
public enum UserErrorCode implements IErrorCode {
    PARAM_EMPTY("B000201", "用户注册参数为空"),
    USER_EXISTS("B000202", "当前用户已存在");
    private final String code;

    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
